// Created by WXX on 2022/1/7 13:07
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

class Solution {
public:
    vector<string> generatePossibleNextMoves(string s) {
        vector<string> res;
        for (int i = 0; i + 1 < s.size(); i++)
            if (s[i] == '+' && s[i + 1] == '+') {
                string t = s;
                t[i] = t[i + 1] = '-';
                res.push_back(t);
            }
        return res;
    }
};

void OutputBasicArray1D(vector<string> nums) {
    cout << "[";
    for (int i = 0; i < nums.size(); i++) {
        cout << nums[i];
        if (i != nums.size() - 1) cout << ", ";
    }
    cout << "]" << endl;
}

int main() {

    OutputBasicArray1D(Solution().generatePossibleNextMoves("++++"));

    return 0;
}
